//index.js
//获取应用实例
const app = getApp();
Page({
  data: {

    // banner轮播
    swiper: {
      autoplay: true,
      indicatorDots: true,
      img: [
        "../../image/banner.jpg",
        "../../image/banner.jpg",
        "../../image/banner.jpg"
      ]
    },
    menus: [{
        url: "./gjorder/gjorder",
        ico: "../../image/guanjia/order.jpg",
        name: "订单管理"
      },
      {
        url: "./order/orders",
        ico: "../../image/guanjia/order_delegate.jpg",
        name: "代客下单"
      },
      {
        url: "./msg/msg",
        ico: "../../image/guanjia/custom.jpg",
        name: "客户管理"
      },
      {
        url: "./mine/mine",
        ico: "../../image/guanjia/comment.jpg",
        name: "用户评价"
      }

    ],

    // 事故提示
    tips: {
      autoplay: true,
      indicatorDots: false,
      vertical: true,
      circular: true,
      list: [
        "9月13日 15:30 赵丽 订购代维修服务，请立即查看！",
      ]
    },

    // 功能列表
    funList: [{
      icon: "../../image/default.png",
      text: "车险报价",
      url: "../insurance/insurance"
    }, {
      icon: "../../image/default.png",
      text: "事故协助",
      url: "../accidentAssi/accidentAssi"
    }, {
      icon: "../../image/default.png",
      text: "违章办理",
      url: "../peccancy/peccancy"
    }, {
      icon: "../../image/default.png",
      text: "代维修",
      url: "../chexianbj/chexianbj"
    }, {
      icon: "../../image/default.png",
      text: "代保养",
      url: "../chexianbj/chexianbj"
    }, {
      icon: "../../image/default.png",
      text: "接送机",
      url: "../airport/airport"
    }, {
      icon: "../../image/default.png",
      text: "代步车",
      url: "../stepcar/stepcar"
    }, {
      icon: "../../image/default.png",
      text: "救援服务",
      url: "../rescure/rescure"
    }, {
      icon: "../../image/default.png",
      text: "代年检",
      url: "../yearaudit/yearaudit"
    }, {
      icon: "../../image/default.png",
      text: "其他",
      url: "../others/others"
    }],

    // 我的管家
    manager: {
      header: "../../image/default.png",
      name: "张伟",
      score: "9.0",
      level: 4.5,
      adept: "汽车挂牌；车辆保养、维修；续保、保险理赔等",
      detail: ""
    },

  },

  onLoad: function() {
    app.editTabBar();
  },
  tapAction :function(e){
    console.log(e.currentTarget.dataset.url);
    wx.reLaunch({
      url: e.currentTarget.dataset.url,
    })
  }
})